{include file="index/head" /}
<script src="__PUBLIC__/public/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/public/ueditor/ueditor.all.js"></script>
<div class="box" style="overflow: revert;">
  <div class="box-head">
    <h2>{$info.id?'编辑':'添加'}</h2>
    <a href="javascript:history.go(-1);" class="btn fr"><i class="icon-mail-reply (alias)"></i>返回</a></div>
  <div class="form">
    <form method="post" action="{:url('addprofessional')}" class="sycmsform">
    <input type="hidden" name="id" value="{$info.id}" />
    <ul>
      <li>
        <label>学院名称：</label>
        <div class="item">
          <div class="select"><i class="icon-caret-down"></i>
          <input type="hidden" name="school_id" value="{$info.school_id}" class="inputval" />          
          <input type="text" readonly="readonly" placeholder="请选择" class="input" datatype="*" nullmsg="请选择"/>
          <dl class="select-value syui-anim syui-anim-up">
            
            {volist name="school" id="vo"}
            <dd data="{$vo.id}" {if condition="$info.school_id eq $vo.id"}class=selected{/if} >{$vo.school_name}</dd>
            {/volist}
          </dl>
        </div>        
        </div>
      </li>
        <li>
            <label>专业名称：</label>
            <div class="item"><input type="text" name="professional_title" value="{$info.professional_title}" class="input"  datatype="*"  nullmsg="请输入专业名称"/></div>
        </li>
        <li>
          <label>专业图片：</label>
          <div class="item">
            <input type="text" name="professional_logo" datatype="*" nullmsg="请上传学专业ogo" readonly value="{$info.professional_logo}" class="input"/>
            <button type="button" class="button fl" onclick="sycms.showupload(this)" id="image1" at="dg"><i class="icon-plus"></i>浏览上传</button>
            <div class="clear"></div>
            <div class="input-image">{if $info.professional_logo}<img src="{$info.professional_logo}" alt="" />{/if}</div>
          </div>
        </li>
        <li>
          <label>层次：</label>
          <div class="item radio">
            <span><input type="radio" name="level" {if condition="$info.level eq 1"} checked="checked" {/if} value="1"  /> 高起专</span>
            <span><input type="radio" name="level" {if condition="$info.level eq 2"} checked="checked" {/if} value="2" /> 专升本</span>
            <span><input type="radio" name="level" {if condition="$info.level eq 3"} checked="checked" {/if} value="3" /> 专科专业</span>
            <span><input type="radio" name="level" {if condition="$info.level eq 4"} checked="checked" {/if} value="4" /> 本科专业</span>
          </div>
        </li>
        <li>
          <label>学习年份：</label>
          <div class="item"><input type="text" name="year" value="{$info.year}" class="input"  datatype="*"  nullmsg="请输入学习年份"/>&nbsp;&nbsp;年</div>
      </li>
      <li>
        <label>专业推荐：</label>
        <div class="item radio">
          <span><input type="radio" name="hot" {if condition="$info.hot eq 1"} checked="checked" {/if} value="1"  /> 推荐</span>
          <span><input type="radio" name="hot" {if condition="$info.hot eq 2"} checked="checked" {/if} value="2" /> 热门</span>
        </div>
      </li>
        <li><label>&nbsp;</label><div class="item"><button type="submit" class="button"><i class="icon-check"></i>提交</button></div></li>
    </ul>
    </form>
  </div>
</div>
<script> sycms.submitform("{:url('professional')}");

function _checkbox(name){
   var v = $("input[name="+name+"]").val();
       v = v==0?1:0;
   $("input[name="+name+"]").val(v);	
}

</script>